<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="/static/css/css.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/common.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <script src="/static/js/jquery.min.1.8.2.js" type="text/javascript"></script>
    <script src="/static/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
    <script type="text/javascript" src="/static/js/slider.js"></script>
    <script src="/static/js/common_js.js" type="text/javascript"></script>
    <script src="/static/js/jquery.foucs.js" type="text/javascript"></script>
    <script src="/static/js/address.js" type="text/javascript"></script>
    <title>用户地址管理</title>
</head>
{% extends 'index.html' %}
<body>
<!--顶部样式-->
{% block content %}
    <!---->
    <!--位置-->
    <div class="Bread_crumbs">
        <div class="Inside_pages clearfix">
            <div class="right Search">
                <form>
                    <input name="" type="text" class="Search_Box"/>
                    <input name="" type="button" name="" class="Search_btn"/>
                </form>
            </div>
        </div>
    </div>
    <!--用户中心(地址管理界面)-->
    <div class="Inside_pages clearfix">
        <div class="clearfix user">
            <!--左侧菜单栏样式-->
            <div class="user_left">
                <div class="user_info">
                    <div class="Head_portrait"><img src="{{ user.avatar_url }}" width="80px" height="80px"/>
                        <!--头像区域-->
                    </div>
                    <div class="user_name">{{ user.nick_name }}<a href="{{ url_for('user.user_info') }}">[个人资料]</a>
                        <a href="/user/user_head">[修改头像]</a>
                    </div>
                </div>
                <ul class="Section">
                    <li><a href="/user/user_center"><em></em><span>我的订单</span></a></li>
                    <li><a href="/user/user_info"><em></em><span>个人信息</span></a></li>
                    <li><a href="/user/update_psw"><em></em><span>修改密码</span></a></li>
                    <li><a href="#"><em></em><span>我的评论</span></a></li>
                    <li><a href="#"><em></em><span>我的积分</span></a></li>
                    <li><a href="/user/collect_tmp"><em></em><span>我的收藏</span></a></li>
                    <li><a href="/user/address"><em></em><span>收货地址管理</span></a></li>
                </ul>
            </div>
            <!--右侧内容样式-->
            <div class="user_right">
                <div class="user_Borders">
                    <div class="title_name">
                        <span class="name">地址管理</span>
                    </div>
                    <div class="about_user_info">
                        <form>
                            <div class="user_layout">
                                <ul>
                                    <li>
                                        <label class="user_title_name">收件人姓名：</label>
                                        <input name="user_name" type="text" class="add_text"><em>*</em>
                                    </li>
                                    <li><label class="user_title_name">省&nbsp;市&nbsp;区：</label>
                                        <select id="sheng1" onclick="sheng(this);">
                                            <option>省</option>
                                            {% for sheng in sheng_list %}
                                                <option value="{{ sheng.aid }}">{{ sheng.atitle }}</option>
                                            {% endfor %}

                                        </select>
                                        <select id="shi1" onclick="shi(this);">
                                            <option>市</option>
                                        </select>
                                        <select id="qu1">
                                            <option>区</option>
                                        </select>
                                        <em>*</em>
                                    </li>
                                    <li>
                                        <label class="user_title_name">详细地址：</label>
                                        <input name="address" type="text" class="add_text"><em>*</em>
                                    </li>
                                    <li>
                                        <label class="user_title_name">手&nbsp;机&nbsp;号：</label>
                                        <input name="phone" type="text" class="add_text"><em>*</em>
                                    </li>
                                </ul>
                                <div class="operating_btn">
                                    <input name="name" id="sub-sure" type="button" value="确认" class="submit—btn">
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--地址列表-->
                    <div class="Address_List">
                        <div class="title_name"><span class="name">用户地址列表</span></div>
                        <div class="list">
                            <table>
                                <thead>
                                <td class="list_name_title0">收件人姓名</td>
                                <td class="list_name_title1">地区</td>
                                <td class="list_name_title3">电话</td>
                                <td class="list_name_title4">收货地址</td>
                                <td class="list_name_title5">操作</td>
                                </thead>
                                {% for one_address in shop_address %}
                                    <tr>
                                        <td>{{ one_address.name }}</td>
                                        <td>{{ one_address.like_address }}</td>
                                        <td>{{ one_address.phone }}</td>
                                        <td>{{ one_address.address }}</td>
                                        <td>
                                            <a href="javascript:;" onclick="rm_addr(this);"
                                               addr-id="{{ one_address.id }}">删除</a>
                                        </td>
                                    </tr>
                                {% endfor %}


                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--底部样式-->
{% endblock content %}
</body>
</html>
